/*
 * Powered By 
 * Since 2010 - 2016
 */

package com.rf.sys.service;

import java.util.List;
import java.util.Map;

import com.rf.sys.model.Resources;
import com.rf.sys.utils.PageUtils;

public interface ResourcesService{
	
	/**
	 * 根据id获取数据
	 * @param resourcesId
	 * @return Resources
	 */
	public Resources getResourcesByID(String id) throws Exception;
	
	/**
	 * 根据Resources获取数据
	 * @param Resources
	 * @return List<Resources>
	 */
	public List<Resources> getResources(Resources resources) throws Exception;
	
	/**
	 * 获取所有数据
	 * @param 
	 * @return List<Resources>
	 */
	public List<Resources> getResources() throws Exception;
	
	/**
	 * 保存信息
	 * @param Resources
	 * @return
	 */
	public void addResources(Resources resources) throws Exception;
	
	/**
	 * 修改数据
	 * @param Resources
	 * @return
	 */
	public void updateResources(Resources resources) throws Exception;
	
	/**
	 * 删除数据
	 * @param resourcesId
	 * @return
	 */
	public void deleteResources(String id) throws Exception;
	
	/**
	 * 获取数据分页
	 * @param Resources
	 * @param limit
	 * @param offset
	 * @return Map
	 */
	public Map getResourcesPage(Resources resources,PageUtils pageUtils) throws Exception;
	
	/**
	 * 根据用户ID获取数据--登陆后资源加载
	 * @param userId
	 * @return List<Map<String, Object>>
	 */
	public List<Map<String, Object>> getResourcesByUserId(String userId) throws Exception;
}
